package com.example.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author hanxiaoli
 * @since 2021-08-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_goods")
@ApiModel(value="Goods对象", description="")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品名")
    private String goodName;

    @ApiModelProperty(value = "价格")
    private BigDecimal goodPrice;

    @ApiModelProperty(value = "库存")
    private Integer goodStock;

    @ApiModelProperty(value = "商品编号")
    @TableId(value = "good_id", type = IdType.AUTO)
    private Integer goodId;

    @ApiModelProperty(value = "添加商品时间")
    private Date creatTime;

    @ApiModelProperty(value = "修改商品时间")
    private Date updateTime;


}
